import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: "/",
            name: "Login",
            component: () => import('@/components/Login')
        },
        {
             path: '/home',
            name: 'Index',
             component: () => import('@/components/ndex'),
            // redirect: "/shouye",
            children: [
                {
                   path: "/user",
                    name: "UserIndex",
                     component: () => import('@/components/user/Index.vue')
                }
            ]
        }
    ],
    mode: 'history'  //去掉#
})